/*
 * File:   Util.hpp
 * Author: h3xacod3
 *
 * Created on 28 de Outubro de 2008, 23:46
 */

#ifndef _UTIL_HPP
#define	_UTIL_HPP

#ifdef WIN32
#include <windows.h>
#endif

#include <string>

class Util
{
public:
    static void Delay(int ms)
    {
        #ifdef WIN32
        Sleep(ms);
        #else
        usleep(ms*1000);
        #endif
    };
    static std::string IntToStr(int num)
    {
        //implement
        return "";
    }
    static int StrToInt(const std::string & str)
    {
        return atoi(str.data());
    }
    /*static bool StrCmp(const std::string& str1, const std::string str2)
    {
        if(str1==str2)
            return true;
        return false;
    }*/
    static bool StrCmp(std::string str1, std::string str2)
    {
        if(str1==str2)
            return true;
        return false;
    }
};


#endif	/* _UTIL_HPP */


